
export const channel = "txcxApplet";
export const DATE_FORMAT = 'YYYY-MM-DD'
export const LIMIT_HISTORY = 5;
export const UPCASE_NUMBERS = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十']
export const WEEK_DAYS = ['日', '一', '二', '三', '四', '五', '六']
export const WEEK_ENUM = ['周日', '周一', '周二', '周三', '周四', '周五', '周六']
export const CAR_NO_DEFAULT_TRUCK = ["辽", "", "", "", "", "", "", ""]
export const CAR_NO_DEFAULT = ["粤", "", "", "", "", "", "", ""]

export const CHECK_ORDERLIST_SECONDS = 2500
// "港澳警学领IO"
export const CAR_NO_DISABLED = ""

export const DEPART_TIME_LIST = [
    {
        KeyName: '00:00 - 06:00'
    },
    {
        KeyName: '06:00 - 12:00'
    },
    {
        KeyName: '12:00 - 18:00'
    },
    {
        KeyName: '18:00 - 23:59'
    }
]

export const SHIP_PASSENGER_TYPE_INCLUDE = [1, 24, 3]

export const SHIP_SERVICE_TAG_DEFAULT = {
    1: '预订须知',
    2: '取票说明',
    3: '退改说明',
    4: '服务'
}
export const APPROVE_DESC = {
    1: "购取票/退订须知",
    2: "船票代订服务协议",
    3: "轮船意外险须知",
    4: "船上车辆货运险须知",
    5: "退改险须知",
}


export const SHIP_REG = {
    MOBILE: /^(1[3-9][0-9])\d{8}$/,
    EMAIL: /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
    CN_NAME: /^(?:[\u4e00-\u9fa5·]{2,16})$/,
    EN_NAME: /(^[a-zA-Z]{1}[a-zA-Z\s]{0,20}[a-zA-Z]{1}$)/,
    DATE: /^\d{4}(-)(1[0-2]|0?\d)\1([0-2]\d|\d|30|31)$/,
    CARD: /(^\d{8}(0\d|10|11|12)([0-2]\d|30|31)\d{3}$)|(^\d{6}(18|19|20)\d{2}(0\d|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$)/,
    PASSPORT: /(^[EeKkGgDdSsPpHh]\d{8}$)|(^(([Ee][a-fA-F])|([DdSsPp][Ee])|([Kk][Jj])|([Mm][Aa])|(1[45]))\d{7}$)/,
    CHINESE: /^(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+$/,
    NUMBER: /^\d{1,}$/,
    NUMBER_LARGER_THAN_ONE: /^\+?[1-9]\d*$/,
    // CAR_NO: /^(?:[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领 A-Z]{1}[A-HJ-NP-Z]{1}(?:(?:[0-9]{5}[DF])|(?:[DF](?:[A-HJ-NP-Z0-9])[0-9]{4})))|(?:[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领 A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9 挂学警港澳]{1})$/,
    CAR_NO: /^[粤琼桂渝川贵豫湘浙京鄂黑赣苏冀闽云鲁临辽吉晋皖陕沪新甘蒙津青宁军藏警滇港黔澳使A-Z]{1}[A-Z]{1}[A-Z0-9]{4,5}[A-Z0-9挂学警港澳]{1}$/,
    TAX: /^[A-Z0-9]{15}$|^[A-Z0-9]{17}$|^[A-Z0-9]{18}$|^[A-Z0-9]{20}$/
}

export const CERT_REG = {
    1: /(^\d{8}(0\d|10|11|12)([0-2]\d|30|31)\d{3}$)|(^\d{6}(18|19|20)\d{2}(0\d|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$)/,
    2: /^[A-Za-z0-9]{7,17}$/,
    5: /^[A-Za-z]([0-9]{8}|[0-9]{10})$/,
    6: /^([HhMmCcWwKk][0-9]{8})$|^([A-Za-z][a-hj-np-zA-HJ-NP-Z][0-9]{7})$/,
    7: /(^[0-9]{10}([A-Za-z])?$)|(^[0-9]{8}$)/,
    9: /^[A-Za-z][0-9]{8}$/,
    11: /^[0-9A-Za-z]+$/,
    16: /^[A-Za-z][0-9]{9}$/
}

// 发票抬头类型
export const INVOICE_TITLE_TYPE = {
    0: '公司',
    1: '个人',
    2: '机关单位',
}


export const INVOICE_NOTICES = {
    0: '纸质船票即为报销凭证，我司不再提供船票报销凭证',
    1: '票款暂不支持线上开票，请至线下港口开票或联系同程客服95711',
    2: '',
    3: ''
}

export const INVOICE_STATUS = {
    '-1': '未申请',
    0: '已申请',
    1: '开票中',
    2: '开票失败',
    3: '开票成功'
}

export const INVOICE_TYPE = {
    0: '纸质船票即为报销凭证',
    1: '请至出发港口索取发票',
    2: '目前只支持电子发票',
    3: '目前只支持电子发票'
}

export const DATE_FORMAT_STRING = 'YYYY-MM-DD'
export const DATE_FORMAT_SLASH = 'YYYY/MM/DD'

/**
 * 常旅 相关枚举常量
 */
export const SHIP_PASSENGER_SEX = {
    0: '女',
    1: '男'
}

export const SHIP_PASSENGER_TYPE = {
    0: '成人',
    1: '儿童',
    2: '学生',
    3: '长者',
    22: '市民成人',
    24: '市民儿童'
}

export const SHIP_PASSENGER_TYPE_ORDER = {
    1: '成人票',
    2: '儿童票',
    3: '学生票',
    4: '长者票',
    22: '市民成人票',
    24: '市民儿童票'
}

// 购票须知的 乘客类型
export const SHIP_PASSENGER_TYPE_NOTICE = {
    1: '成人票',
    2: '儿童票',
    3: '老人票',
    5: '学生票',
    6: '携童票',
}

// (1:岛民,2:市民,3:员工票,4:市民儿童,5:普通成人,6:普通儿童)  北海市民乘客类型 常量 对应关系
export const SHIP_PASSENGER_TYPE_BEIHAI = {
    0: 5,
    1: 6,
    22: 2,
    24: 4
}

// 船票证件类型
export const SHIP_CERT_TYPE = {
    1: '身份证',
    2: '护照',
    5: '回乡证',
    6: '港澳通行证',
    7: '台胞证',
    8: '其他',
    9: '台湾通行证',
    11: '学生证',
    16: '台湾身份证',
    17: '港澳身份证',
    18: '入台证',
    100: '旅行证',
    101: '台湾护照',
}

export const CERT_TIP_MSG = {
    1: '',
    2: '7-17位数字或字母组合',
    5: '“1位英文字母+8位或10位数字”',
    6: '“1位英文字母(HhMmCcWwKk)”+“8位数字”，或2位英文字母(第2位不能为大写、小写的i或o)+7位数字',
    7: '“8位或10位数字或（10位数字+1位英文字母）”',
    9: '“1位英文字母”+“8位数字”',
    11: '',
    16: '',
    17: '',
    18: '',
    100: '',
    101: '',
}

export const CERT_TIP_IMG = {
    1: '',
    2: '',
    5:'https://file.40017.cn/ship/ship/images/wx/edit_card_demo/%E5%9B%9E%E4%B9%A1%E8%AF%81.png',
    6:'https://file.40017.cn/ship/ship/images/wx/edit_card_demo/%E6%B8%AF%E6%BE%B3%E9%80%9A%E8%A1%8C%E8%AF%81.png',
    7:'https://file.40017.cn/ship/ship/images/wx/edit_card_demo/%E5%8F%B0%E8%83%9E%E8%AF%81.png',
    9:'https://file.40017.cn/ship/ship/images/wx/edit_card_demo/%E5%8F%B0%E6%B9%BE%E9%80%9A%E8%A1%8C%E8%AF%81.png',
    11: '',
    16:'https://file.40017.cn/ship/ship/images/wx/edit_card_demo/%E5%8F%B0%E6%B9%BE%E8%BA%AB%E4%BB%BD%E8%AF%81.png',
    17: '',
    18: '',
    100: '',
    101: '',
}

// 国籍
export const SHIP_NATION_TYPE = {
    // 1: '全部',
    2: '中国大陆',
    3: '中国澳门',
    4: '中国台湾',
    5: '中国香港',
    6: '外籍'
}

// 其他
export const SHIP_EXTRA_INFO = {
    1: '性别',
    2: '出生日期',
    3: '签证有效期',
    4: '签证号码',
    5: '可停留天数',
    6: '签证类型'
}

export const SHIP_VISA_TYPE = ['F', '免签', 'L', 'X', 'Z', 'G', 'J1/J2', 'C', 'Q2', 'M']

// 证件信息
export const SHIP_CARD_RELATION = {
    1: '全部',
    2: '中文姓名',
    3: '英文性,英文名',
    4: '护照有效期',
    5: '护照签发时间',
    6: '签发次数'
}

export const DEFAULT_STUDENT_SET = {
    "1":{
        "LinkerExtra":[

        ],
        "FirstCerts":{
            "1":["2"]
        },
        "SecondCerts":{
            "11": ["2"]
        }
    }
}
// 学生票走 常旅配置的供应商 ids Supplier
export const SHIP_STUDENT_SUPPLIERS = [52]

export const SHIP_SERVICE_AGREEMENT_HTML = ''

// 产品 码
export const PRODUCT_CODE = 2045

export const TRACER_PAGES = {
    "list": "pages/list/index",
    "calendar": "pages/calendar/index",
    "middle": "pages/middle/index",
    "return": "pages/return/index",
    "boatinfo": "pages/boatinfo/index",
    "booking": "pages/booking/index",
    "passengers": "pages/passengers/index",
    "create": "pages/create/index",
    "nations": "pages/nations/index",
    "order": "pages/order/index", 
    "airlines": "pages/airlines/index",
    "refundProgress": "pages/refundProgress/index",
    "invoice": "pages/invoice/index",
    "partRefund": "pages/partRefund/index",
    "map": "pages/map/index"
  }
